<%-- 
    Document   : w_markovResult
    Created on : Oct 10, 2013, 10:54:25 AM
    Author     : Trang
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="Bidding Strategy - Knapsack Problem">
        <title>Bidding Strategy - Knapsack Problem</title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
        <s:head />
    </head>
    <body>
        <div class="headerbg">
            <%@include file="/include/mHeader.jsp" %>
        </div>
        <div class="contentbg">
            <div class="content">
                <div class="kpResult">
                    <h2>Markov Decision Process Algorithm</h2>
                    <s:actionmessage />
                    <s:actionerror />

                    File Name: <s:property value="inputFileFileName"/>

                    <p style="font-size: 20px;">
                        <b> If only bidding on </b><s:property  value="numberskey"/> <b> keywords, you should advertise for this keywords:</b> 
                        <br>
                    <p style="font-size: 16px;">
                        <s:iterator value="markovItem" status="i" >
                            
                            <s:property  value="keyword + '; '"/> 
                            </s:iterator>
                        </p>
                    </p>

                    <h3>Sample Data</h3>

                    <table class="sampleData">
                        <tr>
                            <th class="bDate">Date</th>
                            <th class="bKey">Keyword</th>
                            <th class="bQS">Quality Score</th>
                            <th class="bCPC">CPC ($)</th>
                            <th class="bImp">Impressions</th>
                            <th class="bClk">Clicks</th>
                            <th class="bCTR">CTR (%)</th>
                            <th class="bAcpc">Avg. CPC</th>
                            <th class="bCost">Cost ($)</th>
                            <th class="bApos">Avg. Position</th>
                        </tr>

                        <s:iterator value="bidItems" status="i">
                            <s:if test="#i.index < 10">
                                <s:if test="#i.index % 2 == 1">
                                    <tr class="evenRow">
                                        <td class="bDate">
                                            <s:date name="date" format="mm/dd/yy"/>
                                        </td>
                                        <td class="bKey">
                                            <s:property value="keyword"/>
                                        </td>
                                        <td class="bQS">
                                            <s:property value="qualityScore"/>
                                        </td>
                                        <td class="bCPC">
                                            
                                                <s:property value="cpc"/>
                                           
                                        </td>
                                        <td class="bImp">
                                            <s:property value="impressions"/>
                                        </td>
                                        <td class="bClk">
                                            <s:property value="clicks"/>
                                        </td>
                                        <td class="bCTR">
                                          
                                                <s:property value="ctr"/>
                                            
                                        </td>
                                        <td class="bAcpc">
                                           
                                                <s:property value="avgCpc"/>
                                           
                                        </td>
                                        <td class="bCost">
                                           
                                                <s:property value="cost"/>
                                         
                                        </td>
                                        <td class="bApos">
                                            <s:property value="avgPosition"/>
                                        </td>
                                    </tr>
                                </s:if>
                                <s:else>
                                    <tr class="oddRow">
                                        <td class="bDate">
                                            <s:date name="date" format="mm/dd/yy"/>
                                        </td>
                                        <td class="bKey">
                                            <s:property value="keyword"/>
                                        </td>
                                        <td class="bQS">
                                            <s:property value="qualityScore"/>
                                        </td>
                                        <td class="bCPC">
                                            
                                                <s:property value="cpc"/>
                                           
                                        </td>
                                        <td class="bImp">
                                            <s:property value="impressions"/>
                                        </td>
                                        <td class="bClk">
                                            <s:property value="clicks"/>
                                        </td>
                                        <td class="bCTR">
                                           
                                                <s:property value="ctr"/>
                                           
                                        </td>
                                        <td class="bAcpc">
                                           
                                                <s:property value="avgCpc"/>
                                            
                                        </td>
                                        <td class="bCost">
                                           
                                                <s:property value="cost"/>
                                          
                                        </td>
                                        <td class="bApos">
                                            <s:property value="avgPosition"/>
                                        </td>
                                    </s:else>
                                </s:if>
                            </s:iterator>
                    </table>
                </div>
            </div>
        </div>
        <div class="footerbg">
            <%@include file="/include/iFooter.jsp" %>
        </div>
    </body>
</html>



